package com.wisdomparking.service;

import java.util.List;
import java.util.Map;

import com.wisdomparking.bean.EcdemicParking;
import com.wisdomparking.bean.simple.SimpleEcdemicParking;

public interface EcdemicParkingService {
	/**
	 * 添加
	 * @param en
	 * @param sign
	 * @return boolean
	 */
	public boolean addEcdemicParking(EcdemicParking en, boolean sign);
	
	/**
	 * 修改
	 * @param en
	 * @param sign
	 * @return boolean
	 */
	public boolean updateEcdemicParking(EcdemicParking en, boolean sign);
	
	/**
	 * 删除
	 * @param id
	 * @return boolean
	 */
	public boolean deleteEcdemicParkingById(Integer id);
	
	/**
	 * 查询
	 * @param id
	 * @return Parking
	 */
	public EcdemicParking getEcdemicParking(Integer id);
	
	/**
	 * 查询
	 * @param name
	 * @return
	 */
	public EcdemicParking getEcdemicParkingByName(String name);
	
	
	/**
	 * 获取对象列表
	 * @param map
	 * @return
	 */
	public List<EcdemicParking> getEcdemicParkingList(Map<String, Object> map);
	
	
	/**
	 * 获取记录总条数
	 * @param map
	 * @return long
	 */
	public long getCountByEcdemicParking(Map<String, Object> map);
	
	/**
	 * 获取简单对象列表
	 * @param map
	 * @return
	 */
	public List<SimpleEcdemicParking> getDistanceEcdemicParking(Map<String, Object> map);
	
}
